package com.power.flowable.api;

import com.plf.common.domain.ResponseDTO;
import com.power.flowable.model.Act_dsn_form_scat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *  流程环节组定义 Feign
 */
@FeignClient(value = "sfflow-svr", contextId = "sfflow-svr", path = "/sfflow-svr")
@RestController
public interface IAct_dsn_form_scatFeign {

    /**
     * 批量保存
     * @param formid 表单id
     * @param list
     * @return
     */
    @PostMapping("/act_dsn_form_scat/saveAll")
    ResponseDTO saveAll(@RequestParam String formid, @RequestBody List<Act_dsn_form_scat> list);

    /**
     * 获取流程环节节点 和 环节组配置
     * @param formid
     * @return
     */
    @PostMapping("/act_dsn_form_scat/findAllByFormid")
    ResponseDTO findAllByFormid(@RequestParam String formid, @RequestParam String modelKey);

}
